package cn.appsys.service.impl;

/**
 * Created by Kelvin on 2017/10/16.
 */

import cn.appsys.dao.AppInfoMapper;
import cn.appsys.pojo.AppInfo;
import cn.appsys.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * App信息层的实现类
 */
@Service("appInfoService")
public class AppInfoServiceImpl implements AppInfoService{

    @Autowired
    private AppInfoMapper appInfoMapper;

    public AppInfoMapper getAppInfoMapper() {
        return appInfoMapper;
    }

    public void setAppInfoMapper(AppInfoMapper appInfoMapper) {
        this.appInfoMapper = appInfoMapper;
    }

    /**
     * 实现获取所有App信息
     * @return
     */
    @Override
    public List<AppInfo> getAllAppInfo() {
        return appInfoMapper.getAllAppInfo();
    }
}
